CC=g++
LD=ld
AR=ar

# TODO: replace the XSISDK with mentalray standalone
STRICT=-Wall
INC=-I/usr/include -I./include -I/usr/local/mi/mrdemo/include
CFLAGS=${STRICT} ${INC} -O3 -fPIC -fno-common

ARFLAGS=rcs

LIBNAME=liblofi-miaux.a

SOURCES=Color.cpp
OBJECTS=${SOURCES:.cpp=.o}

all: dist/${LIBNAME}

build/${OBJECTS}: src/${SOURCES} include/miaux.h
		${CC} -c ${CFLAGS} -o $@ src/${SOURCES}

dist/${LIBNAME}: build/${OBJECTS}
		${AR} ${ARFLAGS} dist/${LIBNAME} build/${OBJECTS}

clean:
		rm dist/${LIBNAME}
		rm build/${OBJECTS}
